﻿@using System.Collections.Generic
@model UserEntity


@{
    Layout = "_AccountLayout";
    ViewData["Title"] = "登  录";

}
<div class="loginColumns animated fadeInDown">
    <div class="row">
        <div class="col-md-6">
            <h2 class="font-bold">Welcome to @ApplicationEnvironments.ApplicationName</h2>

            <p>
                Perfectly designed and precisely prepared admin theme with over 50 pages with extra new web app views.
            </p>

            <p>
                Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.
            </p>

            <p>
                When an unknown printer took a galley of type and scrambled it to make a type specimen book.
            </p>

            <p>
                <small>It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.</small>
            </p>

        </div>
        <div class="col-md-6">
            <div class="ibox-content">

                <form asp-controller="Login" asp-action="Login" asp-route-returnurl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal" role="form">
                    <div asp-validation-summary="@ValidationSummary.All" class="text-danger"></div>
                    <div class="form-group">
                        <label asp-for="UserName" class="col-md-3 control-label text-right">账  号</label>
                        <div class="col-md-9">
                            <i class="input-icon fa fa-user"></i>
                            <input asp-for="UserName" validate="{required:true,minlength:4,maxlength:16,stringEn:true}" maxlength="16" class="form-control" />

                            <span asp-validation-for="UserName" class="text-danger"></span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label asp-for="Password" class="col-md-3 control-label text-right">密  码</label>
                        <div class="col-md-9">
                            <input asp-for="Password" type="password" class="form-control" validate="{required:true,minlength:6,maxlength:16,stringEn:true}" maxlength="16" />
                            <i class="input-icon fa fa-lock"></i>
                            <span asp-validation-for="Password" class="text-danger"></span>
                        </div>
                    </div>
                    <div class="form-group">

                        <div class="col-md-offset-3 col-md-9">
                            <div class="i-checks">
                                <label asp-for="RememberMe" class="i-checkbox"><input class="checkbox" asp-for="RememberMe" type="checkbox" /><span style="float:right;">Remember Me </span></label>
                            </div>
                        </div>

                    </div>
                    <div class="form-group">
                        <div class="col-md-offset-2 col-md-10">
                            <button type="submit" class="btn btn-primary block full-width m-b">Log in</button>
                        </div>
                    </div>

                    <p class="text-muted text-center">
                        <a asp-controller="Account" asp-action="ForgotPassword">Forgot your password?</a>
                    </p>
                    <p class="text-muted text-center"><small>Do not have an account?</small></p>
                    <p>
                        <div class="form-group">
                            <div class="col-md-offset-2 col-md-10">
                                <a asp-controller="Account" asp-action="Register" class="btn btn-w-m btn-white btn-block  ">Register as a new user?</a>
                            </div>
                        </div>
                    </p>
                </form>
                @*<p class="m-t"> <small>Inspinia we app framework base on Bootstrap 3 &copy; 2014</small> </p>*@
            </div>
        </div>
    </div>
    <hr />
    @await Html.PartialAsync("_LoginFooter")
</div>
    @section scripts{
        <script type="text/javascript">
        var form = $(".form-horizontal").CustomForm({IsValidate:true});

        $(".form-horizontal").submit(function () {
            if (!$(".form-horizontal").valid())
            {
                return false;
            }

        });
        </script>

    }
